package gokv

import "errors"

var (
	ErrKeyIsEmpty            = errors.New("key is empty")
	ErrIndexUpdateFailed     = errors.New("index update failed")
	ErrKeyNotFound           = errors.New("key not found in database")
	ErrDataFileNotFound      = errors.New("data file not found")
	ErrOptionIsEmpty         = errors.New("options is empty")
	ErrFileDestroyCorrupted  = errors.New("file maybe corrupted")
	ErrIndexDeleteFailed     = errors.New("index delete failed")
	ErrExceedMaxBatchNum     = errors.New("exceed max batch num")
	ErrMergeIsProgress       = errors.New("merge is in progress, try again later")
	ErrDatabaseIsUsing       = errors.New("the database directory is used by another process")
	ErrMergeRatioUnreached   = errors.New("merge ratio is unreached")
	ErrNoEnoughSpaceForMerge = errors.New("no enough space for merge")
)
